package com.hk.commons.entity.yingmi;

import com.hk.commons.enm.OrderMonitorEvent;
import com.hk.commons.entity.IdEntity;

import javax.persistence.*;

/**
 * Created by Antinomy on 17/2/20.
 */
@Entity
@Table(name = "t_yingmi_api_event")
public class YingmiApiEvent extends IdEntity {

    @Column(columnDefinition = "varchar(10) comment 'http请求方式'")
    private String httpWay;

    @Column(columnDefinition = "varchar(300) comment '请求路径'")
    private String path;

    @Column(columnDefinition = "text comment '请求参数'")
    private String params;

    @Column(columnDefinition = "text comment '事件结果'")
    private String result;

    public YingmiApiEvent(String httpWay, String path, String params, String result) {
        this.httpWay = httpWay;
        this.path = path;
        this.params = params;
        this.result = result;
    }

    public String getHttpWay() {
        return httpWay;
    }

    public void setHttpWay(String httpWay) {
        this.httpWay = httpWay;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
